<?php

namespace app\home\controller;

use app\common\model\ManagerJob as ManagerJobModel;

class Managerjob extends Base
{
    /**
     * [index  职务列表]
     * @param
     * @return mixed|\think\response\Json
     * @author [C。]
     */
    public function index()
    {
        $model = new ManagerJobModel;
        try{
            $job = $model->getAllData([]);
        } catch (\Exception $e) {
            systembug($e->getMessage(),2,$this->url);
            return admin_json(-1, $e->getMessage());
        }
        return admin_json(1, '获取成功',$job);
    }
}